import base.util.HttpRequestUtils;
import com.alibaba.fastjson.JSONObject;

public class Test {

    public static void main(String[] args) {
        JSONObject accessToken = HttpRequestUtils.httpGet("https://api.weixin.qq.com/sns/oauth2/access_token?appid=wx8068b9c8a8c2dc5c&secret=506955a38eba74df3389c9190ffc300b&code=001ec2a8d3cacdcf687d878328d58f5l&grant_type=authorization_code");
        if (accessToken!=null) {
            //   {"errcode":40029,"errmsg":"invalid code, hints: [ req_id: c9iL_0895ns65 ]"}
            System.out.println(accessToken.get("access_token"));

        }
    }


}
